import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home.vue'
import Login from '../user/Login.vue'
// 搜索
import Searchs from '@/components/Searchs.vue'


import Register from '../user/Register.vue'
import { Search } from 'vant';
Vue.use(Search);
Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    },
    
    {
      path: '/search',
      name: 'search',
      component: Searchs,
    },
  ]
})
